package com.bs.resa.service;

import com.bs.resa.pojo.AdminUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Author lin
 * @date 2019/3/18 16:24
 */
public interface AdminUserService {

    public AdminUser login(String account, String password);

    List<AdminUser> queryAll();

    List<AdminUser> queryByPid(String pid);



    /**
     * @Description: 根据用户ID查询角色
     * @param userid
     * @return
     */
    Set<String> findRoleByUserId(Long userid);

    /**
     * @Description: 根据用户ID查询权限
     * @param userid
     * @return
     */
    Set<String> findPermissionByUserId(Long userid);

    /**
     * 更加用户名查询用户id
     * @param account
     * @return
     */
    AdminUser findByUserAccount(String account);
}
